package com.nd.pojo.vo;

import lombok.Builder;

import java.util.List;

/**
 * @program: project2mall
 * @description: 创建 admin vo 模块
 * @author: shit_code_builder
 * @create: 2021-06-05 13:32
 **/
public class CreateAdminVO extends ErrorAndErrno<CreateAdminVO.DataBean>{


    /**
     * errno : 0
     * data : {"id":12,"username":"A87687687665765","password":"$2a$10$tRT5sNMK1rIqruUkyLPf2u8hGHcKmoF0PT731DH4Irq4jistj70Su","avatar":"http://182.92.235.201:8083/wx/storage/fetch/r6680ffx3plyle2rxbkd.jpg","addTime":"2021-06-05 13:25:46","updateTime":"2021-06-05 13:25:46","roleIds":[2,11,3]}
     * errmsg : 成功
     */

    private long errno;
    private DataBean data;
    private String errmsg;

    @Override
    public long getErrno() {
        return errno;
    }

    @Override
    public void setErrno(long errno) {
        this.errno = errno;
    }

    @Override
    public DataBean getData() {
        return data;
    }

    @Override
    public void setData(DataBean data) {
        this.data = data;
    }

    @Override
    public String getErrmsg() {
        return errmsg;
    }

    @Override
    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    @Builder
    public static class DataBean {
        /**
         * id : 12
         * username : A87687687665765
         * password : $2a$10$tRT5sNMK1rIqruUkyLPf2u8hGHcKmoF0PT731DH4Irq4jistj70Su
         * avatar : http://182.92.235.201:8083/wx/storage/fetch/r6680ffx3plyle2rxbkd.jpg
         * addTime : 2021-06-05 13:25:46
         * updateTime : 2021-06-05 13:25:46
         * roleIds : [2,11,3]
         */

        private int id;
        private String username;
        private String password;
        private String avatar;
        private String addTime;
        private String updateTime;
        private Integer[] roleIds;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public String getAddTime() {
            return addTime;
        }

        public void setAddTime(String addTime) {
            this.addTime = addTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public Integer[] getRoleIds() {
            return roleIds;
        }

        public void setRoleIds(Integer[] roleIds) {
            this.roleIds = roleIds;
        }
    }
}
